package clientGUI.userPanels.Controllers;

import clientGUI.Controllers.Controller;
import clientserver.Client;
import clientserver.Packet;
import college.Report;
import college.Request;
import college.RequestTreatment;

public class EvaluatorReportPanelController  extends Controller

{
	
	int rid;
	Report r;
	RequestTreatment r1;
	

	
	public EvaluatorReportPanelController(int id,Client cl)
	{
	    client = cl;
	    rid = id;
		
	}
	
	public void EvaluateAndSubmit(int id,String t1,String t2,String t3,String t4,String t5)
	{
		r = new Report(id,t2,t3,t4,t5,t1);
		r1.setcurrentstage(5);
		r1.updatestageindb();
		String q;
		q = "Update Report r Set r.Evaluator = '"+t1+" r.Evaluation = '"+t2+" r.losses = '"+t3+" r.benefit = '"+t4+"  r.change_desc = '"+t5+"' Where r.rid = '"+id+"'" ;
		Packet p=new Packet(q);
		 p.setUpdatePacket();
		 client.SendPacketNowait(p);
	}
	
	
	
	
}

